<body>
<div class="ui-form w600">
<form id="form" action="{url('label/add')}" method="post">
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="type" value="{$type}"/>
<input type="hidden" name="es_class" value="cid"/>
<table>
<tr><th>标签名称:</th><td><input datatype="s" class="input w300" type="text" name="title"  value="{$info['title']}"/><span class="vform"></span></td></tr>
<tr>
    <th>标签属性:</th>
    <td>
        <select class="select" name="es_search">
            <option value="0" {if $info[es_search] == 0}selected{/if}>禁止搜索</option>
            <option value="1" {if $info[es_search] == 1}selected{/if}>支持搜索</option>
        </select>
        <select class="select" name="es_subclass">
            <option value="0" {if $info[es_subclass] == 0}selected{/if}>不包含子类</option>
            <option value="1" {if $info[es_subclass] == 1}selected{/if}>包含子类</option>
        </select>
        <span class="gray">当"ID绑定"设为"绑定模型ID"此设置将失效.</span>
    </td>
</tr>
<tr>
    <th>ID绑定:</th>
    <td>
        <select class="select" name="es_locks">
            <option value="1" {if $info[es_locks] == 1}selected{/if}>锁定栏目ID</option>
            <option value="0" {if $info[es_locks] == 0}selected{/if}>动态栏目ID</option>
            <option value="2" {if $info[es_locks] == 2}selected{/if}>绑定模型ID</option>
        </select>
        <span class="gray">前台标签ID的查询条件</span>
    </td>
</tr>
<tr>
    <th>资源特性ID:</th>
    <td><input class="input w200" type="text" name="es_special" value="{$info['es_special']}" /><span class="gray">特性ID之间用","号分割.例:1,2,3,4</span>
    </td>
</tr>
<tr>
    <th>读取数量:</th>
    <td>
    <input datatype="n"  class="input w60" type="text" name="es_limits" value="{$info['es_limits']}" /><span class="vform"><span class="gray">只能够输入数字,如翻页为每页数量。</span></span>
    </td>
</tr>
<tr><th>排序:</th><td>
        <select class="select" onChange="$('#es_order').val($(this).val())">
            <option value="" selected>请选择排序类型</option>
            <option value="id desc">ID倒序</option>
            <option value="id asc">ID升序</option>
            <option value="views desc,id desc">阅读次数倒序</option>
            <option value="views asc,id desc">阅读次数升序</option>
            <option value="sort desc,id desc">自定义倒序</option>
            <option value="sort asc,id desc">自定义升序</option>
        </select>
        <input  id="es_order" datatype="*" class="input w150" type="text" name="es_order"  value="{$info['es_order']}"  />
        <span class="vform"></span>
    </td>
</tr>
 <tr>
    <th>附加SQL条件:</th>
    <td>
        <input id="where" class="input w300" type="text" name="es_where" value="{$info['es_where']}" /><span class="gray">标准SQL WHERE条件语句</span>
    </td>
</tr>
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','Dialog','Form',function(){ 
    $('#form').cpFormPage();
}) 
</script>
</body>